package com.huangkailong.designpattern.factory.factorymethod;

/**
 * 工厂方法模式测试.
 *
 * @author huangkl
 * @since 1.0.0
 */
public class Client {
    /**
     * 工厂方法模式测试.
     */
    public static void main(String[] args) {
        CourseFactory courseFactory = new JavaCourseFactory();
        Course javaCourse = courseFactory.create();
        javaCourse.record();
        courseFactory = new PythonCourseFactory();
        Course pythonCourse = courseFactory.create();
        pythonCourse.record();
    }
}
